import { http } from '@/utils/request.js'

const fundPoolService = {
  list: (data) => {
    return http.get('/system/fundPool/list', data)
  },
  update: (data) => {
    return http.put('/system/fundPool', data)
  },
  add: (data) => {
    return http.post('/system/fundPool', data)
  },
  getDetail: (zlpromptId) => {
    return http.get(`/system/fundPool/${zlpromptId}`)
  },
  delete: (id) => {
    return http.delete(`/system/fundPool/${id}`)
  },
  optionList: () => {
    return http.get('/system/customerInformation/queryList')
  },
  auditFundPoolDetail: (data) => {
    return http.put('/system/fundPool/audit', data)
  },
  matchFundPool: ({ fundPoolIds, promptIds }) => {
    return http.put(`/system/fundPool/match/?fundPoolIds=${fundPoolIds}&promptIds=${promptIds}`)
  },
  auditPromptFundPool: (params) => {
    return http.get(`/system/fundPool/auditPrompt/${params}`)
  },
  auditFundPool: (params) => {
    return http.get(`/system/fundPool/auditFundPool/${params}`)
  },

//   matchFundPool: (fundPoolIds, promptIds) => {
//     return http.put(`/system/fundPool/match` + `?fundPoollds=${fundPoolIds}&promptlds=${promptIds}`)
//   },
}
export default fundPoolService
